-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Remove check for modified main strings.xml outside release branch
#22382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove check for modified main strings.xml outside release branch
#22382
Conversation
This Danger check was out of place as `WordPress/src/main/res/values/strings.xml` is the source of truth for localizations. Unlike in Apple projects, where we use `genstrings` to find localized strings in the codebase to assemble the `strings` file, in Android, as far as I understand, `<app>/src/main/res/valudes/strings.xml` is the source of truth. I believe this check ended up in `Dangerfile` accidentally. It was introduced in #20132. The update was done across our suite of apps, see for example woocommerce/woocommerce-android#10692 and woocommerce/woocommerce-ios#11926. Given I couldn't find a comment explicitly about adopting this check, I guess neither @iangmaia nor myself notice the same pattern as iOS was adopted in the Android repo. To reinforce the idea that this check is out of place, notice that WooCommerce Android does not implement the check. _Of course, it could be that WooCommerce is wrong, but lacking code to update `strings.xml` as part of the code freeze process, that explanation is not satisfying._
|
|
| App Name | Jetpack | |
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr22382-451040e | |
| Commit | 451040e | |
| Direct Download | jetpack-prototype-build-pr22382-451040e.apk |
|
| App Name | WordPress | |
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr22382-451040e | |
| Commit | 451040e | |
| Direct Download | wordpress-prototype-build-pr22382-451040e.apk |
|
|
||
| common_release_checker.check_internal_release_notes_changed(report_type: :message) | ||
|
|
||
| android_release_checker.check_modified_strings_on_release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In #20132, I've noticed in the description:
Added check for translations being changed only on the release branch
Which I think makes sense on WPAndroid?
Though there seems to be a bug in the check itself as it's checking any strings.xml, including the base, and not only the translations. Probably it comes from my misunderstanding of the strings sync process back then.
I've created Automattic/dangermattic#105 to tackle this issue separately to eventually use this check.





Description
This Danger check was out of place as
WordPress/src/main/res/values/strings.xmlis the source of truth for localizations.Unlike in Apple projects, where we use
genstringsto find localized strings in the codebase to assemble thestringsfile, in Android, as far as I understand,<app>/src/main/res/valudes/strings.xmlis the source of truth.I believe this check ended up in
Dangerfileaccidentally. It was introduced in#20132. The update was done across our suite of apps, see for example woocommerce/woocommerce-android#10692 and woocommerce/woocommerce-ios#11926. Given I couldn't find a comment explicitly about adopting this check, I guess neither @iangmaia nor myself notice the same pattern as iOS was adopted in the Android repo.
To reinforce the idea that this check is out of place, notice that WooCommerce Android does not implement the check. Of course, it could be that WooCommerce is wrong, but lacking code to update
strings.xmlas part of the code freeze process, that explanation is not satisfying.Testing instructions
See this test PR: #22383